package com.amkai.aes.webservice.binary.objecthandler.inventory;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.amkai.aes.aescommon.service.binary.job.Job;
import com.amkai.aes.generatedbeans.organization.Department;
import com.amkai.common.extensions.hibernate.config.manager.SessionManager;

public class ResolverServiceManager {
	private static final Log logger = LogFactory.getLog(ResolverServiceManager.class);
	
	private SessionManager sm;
	// KKORNEL: AES-11533
	//private DictionaryManager dm;
	private Job job;
	
	public ResolverServiceManager(SessionManager sm, Job job) {
		this.sm = sm;
		this.job = job;
	}

	// KKORNEL: AES-11533
	/*public DictionaryManager getDictionaryManager() {
		if (dm == null) {
			try {
				dm = new DictionaryManager(sm);
			} catch (Exception e) {
				logger.error("DictionaryManager: ", e);
			}
		}
		return dm;
	}*/

	public Department getCurrentDepartment() {
		return job.getModuleDepartment();
	}
}
